/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import com.prabhu.jeazyprops.bean.KeyValue;
import com.prabhu.jeazyprops.encryption.Base64;
import com.prabhu.jeazyprops.props.BaseProps;
import java.io.File;

/**
 * Test Application for Displaying and Updating the Properties
 *
 * @author Prabhu Prabhakaran
 */
public class PropsTestGui extends BaseProps {

    public KeyValue Property1 = new KeyValue("Property1", "Property1");
    public KeyValue Property2 = new KeyValue("Property2", "Property2");
    public KeyValue Property3 = new KeyValue("Property3", "Property3");
    public KeyValue Property4 = new KeyValue("Property4", "Property4");
    private boolean property1;
    private int property2;
    private String property3;
    private File property4;
    public static PropsTestGui lPropsTest;

    public boolean isProperty1() {
        return property1;
    }

    public void setProperty1(boolean property1) {
        this.property1 = property1;
    }

    public int getProperty2() {
        return property2;
    }

    public void setProperty2(int property2) {
        this.property2 = property2;
    }

    public String getProperty3() {
        return property3;
    }

    public void setProperty3(String property3) {
        this.property3 = property3;
    }

    public File getProperty4() {
        return property4;
    }

    public void setProperty4(File property4) {
        this.property4 = property4;
    }

    /**
     * @param args the command line arguments
     */
    public static PropsTestGui getInstance() {
        if (lPropsTest == null) {
            lPropsTest = new PropsTestGui();
            lPropsTest.setEncryption(new Base64());
            lPropsTest.loadProperties("test.properties");
        }
        return lPropsTest;
    }

    public static void main(String[] args) {
        PropsTestGui.getInstance().printProperties();
        PropsTestGui.getInstance().DisplaySettings();
    }
}
